import request from '@/utils/request'

let MenuApi = {
  /*栏目列表*/
  menuList(data, errorback) {
    return request._post('/shop/menu.menu/index', data, errorback);
  },
  /*栏目列表*/
  menuSet(data, errorback) {
    return request._post('/shop/menu.menu/set', data, errorback);
  },
  /*添加栏目*/
  addMenu(data, errorback) {
    return request._post('/shop/menu.menu/add', data, errorback);
  },
  /*修改栏目*/
  toeditMenu(data, errorback) {
    return request._get('/shop/menu.menu/edit', data, errorback);
  },
  /*修改栏目*/
  editMenu(data, errorback) {
    return request._post('/shop/menu.menu/edit', data, errorback);
  },
  /*删除栏目*/
  deleteMenu(data, errorback) {
    return request._post('/shop/menu.menu/delete', data, errorback);
  },
}
export default MenuApi;
